/**
 * 
 */
package com.HibernateRecepies.Util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 * @author Ignatiues charles arun
 * 
 *         Nov 30, 2010
 */
public class SessionManager_Nest
	{

		private static SessionFactory sessionFactory = getSessionFactory();

		private static SessionFactory buildSessionFactory()
			{
				return new Configuration().configure(
						"com/Hib/Cfg/HibRecepies.cfg.xml")
						.buildSessionFactory();
			}

		private static SessionFactory getSessionFactory()
			{
				sessionFactory = buildSessionFactory();
				return sessionFactory;
			}

	}
